Dictionary

public interface Dictionary

Provides functionality for working with a spell check dictionary.

Functions

Link copied to clipboard
public abstract boolean add(String word)
Adds the given word to the dictionary and schedules a write to disk.
Link copied to clipboard
public abstract boolean has(String word)
Returns true if the dictionary contains the given word.
Link copied to clipboard
public abstract boolean remove(String word)
Removes the given word from the dictionary and schedules a write to disk.
Link copied to clipboard
public abstract Collection<String> words()
Returns the words in the current dictionary or an empty collection if the dictionary does not have any word.